#include <stdio.h>

int main(int argc, char *argv[])
{
	int n, w[3] = {150, 200, 350}, s[10001], i, j, cost, weight;

	scanf("%d", &n);

    for (i=0; i<n; i++) s[i] = 0;
	
    for (i=0; i<3; i++) {
        for (j=0; j<n; j++) {
            cost = w[i]; weight = w[i];
            s[j] = s[j] > s[j-cost] + weight ? s[j] : s[j-cost] + weight;
        }
    }

    printf("%d\n", s[n-1]);

	return 0;
}
